
package com.zr.qkchat.data.repository;

import com.zr.qkchat.data.model.SingleMsg;
import com.zr.qkchat.data.model.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface MsgRepository extends CrudRepository<SingleMsg, String> {

    @Query("select u from SingleMsg where fromUser = :uid")
    List<SingleMsg> findMsgByUserUid(String uid);

}
